﻿$(function(){
	$(".laneige").addClass("show");
	function init(ele,origin){
		var scale,w=Wheight/Wwidth,h=320/504;
		scale=w>h?Wheight/320:Wwidth/504;
		$(ele).css({"-webkit-transform-origin":origin,"transform-origin":origin,"-webkit-transform":"scale("+scale+")",transform:"scale("+scale+")"});
	}
	var Wwidth=$(window).height(),Wheight=$(window).width();
	init(".screen_inner","center");
	$(window).resize(function(){
		Wwidth=$(window).height();
		Wheight=$(window).width();
		init(".screen_inner","center");
	});
	//旋屏提示
	new WxMoment.OrientationTip();
});